package com.hmall.api.client;

import com.hmall.api.config.DefaultFeigenConfig;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;


/**
 * ClassName: cart
 * Package:
 * Description
 *
 * @Author xw
 * @Create 2023/12/9 11:12
 */
@FeignClient(value = "cart-service", configuration = DefaultFeigenConfig.class)
public interface CartClient {

    @ApiImplicitParam(name = "ids", value = "购物车条目id集合")
    @DeleteMapping("/carts")
    void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);
}
